Skip to content

Instantly share code, notes, and snippets.

@berkus
berkus / xbox-one-wireless-protocol.md
Created April 4, 2019 13:21 — forked from alfredkrohmer/xbox-one-wireless-protocol.md
XBox One Wireless Controller Protocol

Physical layer

The dongle itself is sending out data using 802.11a (5 GHz WiFi) with OFDM and 6 Mbit/s data rate:

Radiotap Header v0, Length 38
    Header revision: 0
    Header pad: 0
    Header length: 38
    Present flags
@mattd
mattd / gist:1006398
Created June 3, 2011 14:12
nginx try_files with a proxy_pass
server {
root /var/www/example.com/static;
server_name example.com;
access_log /var/log/nginx/example.com.access.log;
error_log /var/log/nginx/example.com.error.log;
try_files /maintenance.html @proxy;
location @proxy {
proxy_pass http://127.0.0.1:10001;
@mickert
mickert / tcl-google-tv-usb-ethernet-compatibility.md
Last active November 23, 2026 20:58
USB-C / USB-A Ethernet Adapter Compatibility on TCL 55MQLED85K (Google TV)

Scope Adapters Network Platform Last Updated

USB-C / USB-A Ethernet Adapter Compatibility on TCL 55MQLED85K (Google TV)

Real-world tested chipsets, hardware IDs, and setup details

This document lists confirmed working USB Ethernet adapters on the TCL 55MQLED85K (Google TV

@jmcker
jmcker / README.md
Last active November 23, 2026 20:50
Visual Basic Scripts for displaying extended network adapter and OS build info via WMI. Compatible with SysInternal's BGInfo.

BGInfo Scripts

Local Script Usage

You can also modify and test run the scripts locally using:

cscript .\network-info.vbs
@trumad
trumad / arcHistoryToFirefox.md
Last active November 23, 2026 20:46
Import Arc history in Firefox

No good reason why this had to be so tricky:

  • Install Export Chrome History extension in Arc
  • Export history to JSON. Choosing the forever option does actually export ALL the history in Arc
  • Install History Export for firefox
  • Optional: Export Firefox history, to see what the json looks like
  • Make the Arc history match what firefox expects. I used this javascript to convert it:
arcHistory.map(item => {
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active November 23, 2026 20:45
Conventional Commits Cheatsheet
@jedavidson
jedavidson / 2521_exercises.md
Last active November 23, 2026 20:43
A curated list of some good revision and exam preparation programming problems for UNSW's COMP2521. Personal opinion.

These exercises are some I did while studying for COMP2521, as well as some others which I've found afterwards which I think will be relevant. I've collected these problems mostly from LeetCode and HackerRank, which are excellent sites for practicing your coding abilities. Accounts on both sites will be necessary to do the problems listed.

The difficulty ranking is obviously my opinion, but generally speaking here is what they mean:

  • Easy: Problems that you should be able to do without too much difficulty.
  • Intermediate: Problems that are a bit harder, but should be doable with a little bit of thought and intuition.
  • Challenges: Problems that I think are difficult and/or interesting, if you're up for it. There are almost all harder than what's within the scope of 2521.

If you're able to solve the easy and intermediate problems without much difficulty, you're probably very well prepared for any programming questions you'll receive in the ex

@jamieweavis
jamieweavis / macos-app-icon.md
Last active November 23, 2026 20:42
How to create an .icns macOS app icon
@unitycoder
unitycoder / CompactProjectWindow.cs
Created October 20, 2026 21:17
Unity 7000 Alpha Project Window Row Height Fixer
// unity added mega-padding/margins to project window items.. can adjust them with this script.
using System;
using System.Collections.Generic;
using System.Reflection;
using UnityEditor;
using UnityEngine;
[InitializeOnLoad]
internal static class CompactProjectWindowRows
@jaimeiniesta
jaimeiniesta / digital-tablet-tips.md
Last active November 23, 2026 20:36
Learning to draw

Tips about drawing digitally

I asked on https://www.facebook.com/groups/1014974001864957/permalink/1252338398128515/ and these were the main points:

  • Set the tablet settings, on the driver and on the software used for drawing. For example, pressure sensitivity.
  • Check the projection: what screen you're using to project the table and ensure the "constrain proportions" setting is checked.
  • Consider line stabilizing software like Lazy Nezumi Pro (only Windows so far). Sketchbook Pro has this sort of line as well.
  • Use Mischief rather than Photoshop for line drawing. It's simpler and produces more natural line drawing, which can be later exported for rendering in Photoshop.
  • Get comfortable with using undo constantly.
  • Use hard felt nibs for the tablet, the have increased friction and feel more like a pen on paper.